package com.training.java.core.collections;

import java.util.List;

public class Dealer {
	
	private List<Car> Load;

	public void loadCars(List<Car> cars) {
		this.Load = cars;
	}

	public Car sellCar(String make, String model, int year){
		
		for (Car cars : Load) {
			
			if(cars.getMake().equals(make) && cars.getModel().equals(model) && cars.getYear() == year);
				
		}
		return null;
			
			
		}
		
	}




